<template>
    <div>
        <router-view :key="$route.fullPath"></router-view>
        <van-tabbar v-model="active">
            <van-tabbar-item icon="home-o" route to="/home">商城</van-tabbar-item>
            <van-tabbar-item icon="search" route to="/types">订单</van-tabbar-item>
            <van-tabbar-item icon="friends-o" route to="/cart">购物车</van-tabbar-item>
            <van-tabbar-item icon="setting-o" route to="/user">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
  name: '',
  data() { 
    return {
        active: 0
    }
  },
  created() {

  },
  methods:{

  },
 }
</script>

<style scoped>
</style>